﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp1
{
    class WindowsForm
    {
        public static void dataAdapter(string windowsFroms)
        {
            string sqlUser = "server=.;database=yangyong123;Integrate Security = True";
            SqlConnection sqlConnection = new SqlConnection(sqlUser);
            SqlDataAdapter dataAdapter = new SqlDataAdapter(windowsFroms,sqlConnection);
            DataTable dataTable = new DataTable();
            dataAdapter.Fill(dataTable);
            
        }
    }
}
